package commonAdmin.sql.support;

import java.lang.reflect.Field;

public class IdKey extends FieldColumnMapper {

	public IdKey(Field field) {
		super(field);
	}

	public Object get(Object model) {
		try {
			return field.get(model);
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}

	public void set(Object model, Object idVal) {
		try {
			field.set(model, idVal);
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}

}